enum STATISTICS_DATE_STATUS{
	WEEK = 'week',
	HALF_YEAR = 'halfyear',
}

interface IStatisticsOptions{
	label:string;
	status:STATISTICS_DATE_STATUS;
	dateCount:number;
	isUpdate:boolean;
	list:{[propname:string]:IDateItem};
}

interface IDateItem{
	date:string;
	amount:number;
	count:number;
}

interface IMerchantDetail{
	merchant_name:string;
	phone:string;
	agent_phone:string;
	agent_name:string;
	total_amount:string;
	month_trade:string;
	week_trade?:{[propname:string]:IDateItem};
	year_trade?:{[propname:string]:IDateItem};
}


interface ITabsChangeEvent{
	label : string,
	value : number,
	name : string,
}

interface IRequestOptions{
	customer_id:number;
	model_sn:string;
	start_week?:string;
	end_week?:string;
	start_year?:string;
	end_year?:string;
}


export {
	STATISTICS_DATE_STATUS,
	IStatisticsOptions,
	IDateItem,
	IMerchantDetail,
	ITabsChangeEvent,
	IRequestOptions
}